<?php
    @header("Content-Type:text/html;chaarset=utf-8");
    @header("Access-Control-Allow-origin:*");
    const host ='b-umhx0pqfwtcxg8.bch.rds.gz.baidubce.com';
    const user ='b_umhx0pqfwtcxg8';
    const pwd ='12345678';
    const dbName ='b_umhx0pqfwtcxg8';
    $conn =mysqli_connect(host,user,pwd,dbName);
    if(!$conn){
        exit("数据库链接失败");
    }
    mysqli_query($conn,'set names utf-8');
    mysqli_query($conn,'set character set uft-8');
    function argErr($status=false,$detail="请传入完整参数"){
        $obj = array();
        $obj["status"]=$status;
        $obj["detail"]=$detail;
        exit(json_encode($obj));
    }